<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>PHP 5.3.x 中弃用的功能</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration53.sapi.html">SAPI 模块的改变</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration53.undeprecated.html">PHP 5.3.x 保留的功能</a></div>
 <div class="up"><a href="migration53.html">从 PHP 5.2.x 移植到 PHP 5.3.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration53.deprecated" class="section">
  <h2 class="title">PHP 5.3.x 中弃用的功能</h2>
  <p class="simpara">
   PHP 5.3.0 新增了两个错误等级: <strong><code>E_DEPRECATED</code></strong> 
   和 <strong><code>E_USER_DEPRECATED</code></strong>. 错误等级 <strong><code>E_DEPRECATED</code></strong> 被用来说明一个函数或者功能已经被弃用. <strong><code>E_USER_DEPRECATED</code></strong> 等级目的在于表明用户代码中的弃用功能, 类似于
   <strong><code>E_USER_ERROR</code></strong> 和 <strong><code>E_USER_WARNING</code></strong> 等级.
  </p>
  <p class="simpara">
   下面是被弃用的 INI 指令列表. 使用下面任何指令都将导致 <strong><code>E_DEPRECATED</code></strong> 错误.
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="network.configuration.html#ini.define-syslog-variables" class="link">define_syslog_variables</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.register-globals" class="link">register_globals</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.register-long-arrays" class="link">register_long_arrays</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.sect.safe-mode.html#ini.safe-mode" class="link">safe_mode</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="info.configuration.html#ini.magic-quotes-gpc" class="link">magic_quotes_gpc</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="sybase.configuration.html#ini.magic-quotes-sybase" class="link">magic_quotes_sybase</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     弃用 INI 文件中以 &#039;#&#039; 开头的注释.
    </span>
   </li>
  </ul>
  <p class="simpara">
   弃用函数:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.call-user-method.html" class="function">call_user_method()</a></span> (使用
     <span class="function"><a href="function.call-user-func.html" class="function">call_user_func()</a></span> 替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.call-user-method-array.html" class="function">call_user_method_array()</a></span> (使用
     <span class="function"><a href="function.call-user-func-array.html" class="function">call_user_func_array()</a></span> 替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.define-syslog-variables.html" class="function">define_syslog_variables()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.dl.html" class="function">dl()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ereg.html" class="function">ereg()</a></span> (使用 <span class="function"><a href="function.preg-match.html" class="function">preg_match()</a></span> 替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ereg-replace.html" class="function">ereg_replace()</a></span> (使用 <span class="function"><a href="function.preg-replace.html" class="function">preg_replace()</a></span>
     替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.eregi.html" class="function">eregi()</a></span> (使用 <span class="function"><a href="function.preg-match.html" class="function">preg_match()</a></span> 配合
     <em>&#039;i&#039;</em> 修正符替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.eregi-replace.html" class="function">eregi_replace()</a></span> (使用 <span class="function"><a href="function.preg-replace.html" class="function">preg_replace()</a></span>
     配合 <em>&#039;i&#039;</em> 修正符替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.set-magic-quotes-runtime.html" class="function">set_magic_quotes_runtime()</a></span> 以及它的别名函数 <span class="function"><a href="function.magic-quotes-runtime.html" class="function">magic_quotes_runtime()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.session-register.html" class="function">session_register()</a></span> (使用
     <var class="varname"><var class="varname"><a href="reserved.variables.session.html" class="classname">$_SESSION</a></var></var> 超全部变量替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.session-unregister.html" class="function">session_unregister()</a></span> (使用
     <var class="varname"><var class="varname"><a href="reserved.variables.session.html" class="classname">$_SESSION</a></var></var> 超全部变量替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.session-is-registered.html" class="function">session_is_registered()</a></span> (使用
     <var class="varname"><var class="varname"><a href="reserved.variables.session.html" class="classname">$_SESSION</a></var></var> 超全部变量替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.set-socket-blocking.html" class="function">set_socket_blocking()</a></span> (使用
     <span class="function"><a href="function.stream-set-blocking.html" class="function">stream_set_blocking()</a></span> 替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.split.html" class="function">split()</a></span> (使用 <span class="function"><a href="function.preg-split.html" class="function">preg_split()</a></span> 替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.spliti.html" class="function">spliti()</a></span> (使用 <span class="function"><a href="function.preg-split.html" class="function">preg_split()</a></span> 配合
     <em>&#039;i&#039;</em> 修正符替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sql-regcase.html" class="function">sql_regcase()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mysql-db-query.html" class="function">mysql_db_query()</a></span> (使用
     <span class="function"><a href="function.mysql-select-db.html" class="function">mysql_select_db()</a></span> 和 <span class="function"><a href="function.mysql-query.html" class="function">mysql_query()</a></span>
     替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mysql-escape-string.html" class="function">mysql_escape_string()</a></span> (使用 <span class="function"><a href="function.mysql-real-escape-string.html" class="function">mysql_real_escape_string()</a></span> 替代)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     废弃以字符串传递区域设置名称. 使用 LC_* 系列常量替代.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mktime.html" class="function">mktime()</a></span> 的 <em><code class="parameter">is_dst</code></em> 参数. 使用新的时区处理函数替代.
    </span>
   </li>
  </ul>
  <p class="simpara">
   弃用的功能:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     弃用通过引用分配 <a href="language.oop5.basic.html#language.oop5.basic.new" class="link">new</a> 的返回值.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     调用时传递引用被弃用.
    </span>
   </li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration53.sapi.html">SAPI 模块的改变</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration53.undeprecated.html">PHP 5.3.x 保留的功能</a></div>
 <div class="up"><a href="migration53.html">从 PHP 5.2.x 移植到 PHP 5.3.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
